package cn.livingCloud.repository;

import cn.livingCloud.entity.core.CaseRecord;
import cn.livingCloud.entity.core.CaseRecordType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CaseRecordMapper {
    int deleteByPrimaryKey(String uuid);

    int insert(CaseRecord record);

    int insertSelective(CaseRecord record);

    CaseRecord selectByPrimaryKey(String uuid);

    int updateByPrimaryKeySelective(CaseRecord record);

    int updateByPrimaryKeyWithBLOBs(CaseRecord record);

    int updateByPrimaryKey(CaseRecord record);

    List<CaseRecord> findListByCaseUuid(String uuid);

    CaseRecord findCaseCancelRecord(String caseUuid);

    List<CaseRecord> findCaseRecord(@Param("caseUuid") String caseUuid, @Param("type") CaseRecordType type);

    List<CaseRecord> findDistinctCaseRecordReport(@Param("caseUuid") String caseUuid, @Param("report") CaseRecordType report, @Param("limitCount") int limitCount);
}